package com.hrprojectback.mapper;

import com.hrprojectback.dto.Role;
import com.hrprojectback.dto.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper {

    Integer getRoleCounts(@Param("roleSign") String roleSign, @Param("name") String name);

    List<Role> getRole(@Param("roleSign") String roleSign, @Param("name") String name, @Param("pageStart") int pageStart, @Param("pageSize") int pageSize);

    int addRole(Role role);


    Role geteditRole(@Param("roleSign") String roleSign);

    int editRole(Role role);

    int deleteRole(String username);

    int ShengXiao(String username);

    int YiShiXiAo(String username);

    int getStatus(String username);
}
